package  entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * ProductExample entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="product_example")
public class ProductExample implements java.io.Serializable {

	// Fields

	private String rowid;
	private String name;
	private String code;
	private String img;
	private String madein;
	private Date producedate;
	private Date keepdate;
	private String plantgarden;
	private String primaryid;
	private String brand;
	private String type;
	private String batchnum1;
	private String batchnum2;
	private String batchnum3;
	// Constructors

	/** default constructor */
	public ProductExample() {
	}

	/** minimal constructor */
	public ProductExample(String rowid) {
		this.rowid = rowid;
	}

	/** full constructor */
	public ProductExample(String rowid, String name, String code, String img,
			String madein, Date producedate, Date keepdate, String plantgarden,
			String primaryid,String brand,String type,String batchnum1,String batchnum2,String batchnum3) {
		this.rowid = rowid;
		this.name = name;
		this.code = code;
		this.img = img;
		this.madein = madein;
		this.producedate = producedate;
		this.keepdate = keepdate;
		this.plantgarden = plantgarden;
		this.primaryid = primaryid;
		this.brand=brand;
		this.type=type;
		this.batchnum1=batchnum1;
		this.batchnum2=batchnum2;
		this.batchnum3=batchnum3;
	}

	// Property accessors
	@Id
	@GeneratedValue(generator = "system-uuid")  
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(name="rowid")
	public String getRowid() {
		return this.rowid;
	}

	public void setRowid(String rowid) {
		this.rowid = rowid;
	}
	@Column(name="name")
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Column(name="code")
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}
	@Column(name="img")
	public String getImg() {
		return this.img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	@Column(name="madein")
	public String getMadein() {
		return this.madein;
	}

	public void setMadein(String madein) {
		this.madein = madein;
	}
	@Column(name="producedate")
	public Date getProducedate() {
		return this.producedate;
	}

	public void setProducedate(Date producedate) {
		this.producedate = producedate;
	}
	@Column(name="keepdate")
	public Date getKeepdate() {
		return this.keepdate;
	}

	public void setKeepdate(Date keepdate) {
		this.keepdate = keepdate;
	}
	@Column(name="plantgarden")
	public String getPlantgarden() {
		return this.plantgarden;
	}

	public void setPlantgarden(String plantgarden) {
		this.plantgarden = plantgarden;
	}
	@Column(name="primaryid")
	public String getPrimaryid() {
		return this.primaryid;
	}

	public void setPrimaryid(String primaryid) {
		this.primaryid = primaryid;
	}
	@Column(name="brand")
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}
	@Column(name="type")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	@Column(name="batchnum1")
	public String getBatchnum1() {
		return batchnum1;
	}

	public void setBatchnum1(String batchnum1) {
		this.batchnum1 = batchnum1;
	}
	@Column(name="batchnum2")
	public String getBatchnum2() {
		return batchnum2;
	}

	public void setBatchnum2(String batchnum2) {
		this.batchnum2 = batchnum2;
	}
	@Column(name="batchnum3")
	public String getBatchnum3() {
		return batchnum3;
	}

	public void setBatchnum3(String batchnum3) {
		this.batchnum3 = batchnum3;
	}

	
}